package net.cassite.daf4j;

/**
 * Created by wkgcass on 15/10/30.
 */
public class Entity {
        public DataComparable<Integer> id = new DataComparable<Integer>(this);
        public Data<String> name = new Data<String>(this);
        public DataComparable<Integer> age = new DataComparable<Integer>(this);

        public Integer getId() {
                return id.get();
        }

        public String getName() {
                return name.get();
        }

        public Integer getAge() {
                return age.get();
        }

        public void setId(Integer id) {
                DataUtils.set(this.id, id);
        }

        public void setName(String name) {
                DataUtils.set(this.name, name);
        }

        public void setAge(Integer age) {
                DataUtils.set(this.age, age);
        }
}

